Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

app/src/main/java/com/geeksville/mesh/concurrent/Coroutines.kt ui_message_list (be3f882f) Text, 1.63 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.concurrent

Tff7b72import T7ee787com.geeksville.mesh.util.Exceptions
Tff7b72import T7ee787kotlinx.coroutines.CoroutineExceptionHandler
Tff7b72import T7ee787kotlinx.coroutines.CoroutineScope
Tff7b72import T7ee787kotlinx.coroutines.CoroutineStart
Tff7b72import T7ee787kotlinx.coroutines.launch
Tff7b72import T7ee787kotlin.coroutines.CoroutineContext
Tff7b72import T7ee787kotlin.coroutines.EmptyCoroutineContext

Tff7b72private Tff7b72val Te6edf3errorHandler Tff7b72=
Te6edf3CoroutineExceptionHandler Tb4b4b4{ Te6edf3_Tb4b4b4, Te6edf3exception Tff7b72-Tff7b72>
Te6edf3ExceptionsTb4b4b4.Te6edf3reportTb4b4b4(
Te6edf3exceptionTb4b4b4,
Ta5d6ff"Ta5d6ffMeshService-coroutineTa5d6ff"Tb4b4b4,
Ta5d6ff"Ta5d6ffcoroutine-exceptionTa5d6ff"
Tb4b4b4)
Tb4b4b4}

T8b949e/// Wrap launch with an exception handler, FIXME, move into a utility lib
Tff7b72fun Te6edf3CoroutineScopeTb4b4b4.Td2a8ffhandledLaunchTb4b4b4(
Te6edf3contextTb4b4b4: Te6edf3CoroutineContext Tff7b72= Te6edf3EmptyCoroutineContextTb4b4b4,
Te6edf3startTb4b4b4: Te6edf3CoroutineStart Tff7b72= Te6edf3CoroutineStartTb4b4b4.Te6edf3DEFAULTTb4b4b4,
Te6edf3blockTb4b4b4: Te6edf3suspend Te6edf3CoroutineScopeTb4b4b4.Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657Unit
Tb4b4b4) Tff7b72= Tff7b72thisTb4b4b4.Te6edf3launchTb4b4b4(
Te6edf3context Tff7b72= Te6edf3context Tff7b72+ Te6edf3comTb4b4b4.Te6edf3geeksvilleTb4b4b4.Te6edf3meshTb4b4b4.Te6edf3concurrentTb4b4b4.Te6edf3errorHandlerTb4b4b4,
Te6edf3start Tff7b72= Te6edf3startTb4b4b4,
Te6edf3block Tff7b72= Te6edf3block
Tb4b4b4)

Served by rngit 1.5.0 - Generated in 0.04s